/*
 * @Author: qiyu qiyu@byteluck.com
 * @Date: 2023-02-15 18:33:03
 * @LastEditors: qiyu qiyu@byteluck.com
 * @LastEditTime: 2023-03-25 10:45:28
 * @FilePath: /pro-portal-front/src/entry_mobile/main.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createApp } from 'vue'
import setTenant from '@/plugins/setTenant'
// import { i18n, LocaleEnum } from './locales'
import moment from 'moment'
import Vant, { setToastDefaultOptions } from 'vant'
import App from './app.vue'
import store from '@/store'
import router from './router'
import 'vant/lib/index.css'
import { path } from '@/utils'

setToastDefaultOptions('success', {
	icon: path.getFullPath('/images/success.svg'),
	iconSize: '1.5em',
})
setToastDefaultOptions('fail', {
	icon: path.getFullPath('/images/fail.svg'),
	iconSize: '1.5em',
})
setToastDefaultOptions('loading', {
	icon: path.getFullPath('/images/default.svg'),
	iconSize: '1.5em',
})
;(async () => {
	const app = createApp(App).use(router).use(Vant).use(store)

	await setTenant.install(app, 'mobile')
	app.mount('#app')
})()
